<div ng-controller="ClassesCtrl" ng-init="kclistAction()">
    <ul class="sui-breadcrumb">
        <li><a href="#/classes/list">课程表分类</a></li>
        <li><a href="#/classes/kclist">课程表</a></li>
        <li>
            <classcategory-list ng-model="class_category_id" stype="1"></classcategory-list>
        </li>
        <li>
        <a href="#/classes/add?order_id={{list.order_id}}" class="sui-btn btn-primary">新建课程表</a></li>
        <span class="sui-form sui-form pull-right"> 
          <span ng-show="member_id">
            <wxinfo ng-model="member_id" stye="1" is-url="1"></wxinfo>
            <button type="button" class="sui-btn btn-small  btn-danger" ng-show="member_id"   ng-click="member_id=0"> X</button>
          </span>
        <chose-member member-check="memberdata(memberInfo)" title="选择用户" app="1"></chose-member>
        <button class="sui-btn btn-primary" type="submit" ng-click="getList()">{{'search'|translate}}</button>
        </span>
    </ul>
    <!-- catitems -->
    
    <table class="sui-table table-bordered">
        <thead>
            <tr>
                <th>{{'id'|translate}}</th>
                <th>{{'用户'|translate}}</th>
                <!-- <th>{{'课程名称'|translate}}</th> -->
                <th>{{'课程类目'|translate}}</th>
                <th>{{'剩余数量'|translate}}</th>
                <th>{{'总数量'|translate}}</th>
                <th>{{'过期时间'|translate}}</th>
                <!-- <th>{{'属于订单'|translate}}</th> -->
                <th>{{'创建类型'|translate}}</th>
                <th>{{'operation'|translate}}</th>
            </tr>
        </thead>
        <tbody>
            <tr ng-repeat="list in class_list">
                <td>{{list.class_id}}</td>
                <td>
                    <wxinfo ng-model="list.member_id" stye="1"></wxinfo>
                </td>
                <td>
                    <classcategory-list ng-model="list.class_category_id" stype="1"></classcategory-list>
                </td>
                <td>{{list.left_num}}</td>
                <td>{{list.total_num}}</td>
                <td>{{list.expiry_time}}</td>
                <!-- <td>
                <a href="#/order/info?order_id={{list.order_id}}">{{list.order_id}}</a>
                </td> -->
                <td>
                    <span ng-show="list.item_id !=0">从订单中创建</span>
                    <span ng-show="list.item_id==0">手工创建</span>
                </td>
                <td>
                    <a href="#/classes/add?class_id={{list.class_id}}&class_category_id={{list.class_category_id}}" class="sui-btn btn-primary"> {{'edit'|translate}} </a>
                    <a href="#/classdetail/list?class_id={{list.class_id}}&class_category_id={{list.class_category_id}}" class="sui-btn btn-success"> {{'上课记录'|translate}} </a>
                </td>
            </tr>
        </tbody>
    </table>
    <!-- 分页start -->
    <pager page-no="1" page-size="pageSize" total="total" get-data="getList(pageNo)"></pager>
    <!-- 分页end -->
</div>